package han.proof;

import han.entity.FriendEntity;

import java.util.List;

/**
 * @author: Han
 * @date: 2018/7/24 15:00
 * @dscription: 放置好友列表的恶汉单例模式
 */
public class FriendListProof {

    private static FriendListProof ourInstance = new FriendListProof();
    private List<FriendEntity> friendList;

    private FriendListProof() {
    }

    public static FriendListProof getInstance() {
        return ourInstance;
    }

    public List<FriendEntity> getFriendList() {
        return friendList;
    }

    public void setFriendList(List<FriendEntity> friendList) {
        this.friendList = friendList;
    }
}
